package com.wtwd.campus.service;

import com.wtwd.campus.common.RespEntity;
import com.wtwd.campus.entity.DeviceWhiteCall;
import com.wtwd.campus.entity.DeviceWhiteList;
import com.wtwd.campus.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * @author mjy
 * @date 2021/06/29
 * @description
 */
public interface WhiteListService {
    /**
     * 根据设备id获取设备列表
     *
     * @param deviceId
     * @return
     */
    List<DeviceWhiteList> getWhiteListByDeviceId(Integer deviceId, Integer type);

    RespEntity deleteDeviceWhiteList(Integer id, SysUser sysUser);

    RespEntity addDeviceWhiteList(Map<String, Object> deviceWhiteMap, SysUser sysUser);

    /**
     * 添加单个白名单
     *
     * @param whiteCall
     * @return
     */
    int addDeviceWhiteCall(DeviceWhiteCall whiteCall);

    /**
     * 修改白名单状态
     *
     * @param deviceId
     * @param sequence
     * @param status
     * @param commandNumber
     * @return
     */
    int updateWhiteCallStatus(Integer deviceId, Integer sequence, Integer status, String commandNumber);

    /**
     * 删除情亲号白名单号码根据设备id
     *
     * @param deviceId
     * @return
     */
    Integer deletePhoneByDeviceId(Integer deviceId);

    Integer bathAddWhiteCall(List<DeviceWhiteCall> bathAddFamilyData);
}